package com;

import com.mapper.PassengerMapper;
import com.pojo.Passenger;
import com.utils.MyBatisUtils;
import org.junit.Test;

import java.util.List;

/**
 * @author YDW
 * projectName:project2202_3
 * time:2022/4/28 15:57
 * description:
 */
public class testMybatis {
    @Test
    public void queryAll(){
        PassengerMapper mapper = MyBatisUtils.getMapper(PassengerMapper.class);
        List<Passenger> passengers = mapper.queryAll();
        for (Passenger passenger : passengers) {
            System.out.println(passenger);
            System.out.println(passenger.getPassport());
        }
    }
}
